package com.wish.wishfinancial_service.controller;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wish.wishfinancial_service.service.ITSfContractService;
import dto.houseForeclosureDto.RequestSearchSfsDto;
import dto.response.ResponseSearchSfsDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

import java.text.ParseException;
import java.util.List;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author weijiaz
 * @since 2021-04-10
 * @author pengge
 * @since 2021-04-14
 */
@RestController
@RequestMapping("/tSfContract")
public class TSfContractController {
    @Autowired
    private ITSfContractService itSfContractService;

    /**
     * 申请收房贷：收房合同查询
     * @return
     */
    @RequestMapping("searchSfAll")
    public ResultEntity searchSfAll(RequestSearchSfsDto requestSearchSfsDto) throws ParseException {
        PageHelper.startPage(requestSearchSfsDto.getPageNum(),requestSearchSfsDto.getPageSize());
        List<ResponseSearchSfsDto> list = itSfContractService.searchSfAllNotDissolution(requestSearchSfsDto);
        PageInfo<ResponseSearchSfsDto> info = new PageInfo<>();
        return ResultEntity.ok(info);
    }


}

